const PROGMEM int pushButton1 = 2;
const PROGMEM int pushButton2 = 8;
const PROGMEM int led = 13;

void setup() {
  pinMode(pushButton1, INPUT_PULLUP);
  pinMode(pushButton2, INPUT_PULLUP);
  pinMode(led, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  bool btn1 = digitalRead(pushButton1);
  bool btn2 = digitalRead(pushButton2);
  Serial.println(btn1);
  Serial.println(btn2);
  Serial.println();
  if(!btn1 && !btn2)
  {
    digitalWrite(led, HIGH); // 同时按下点亮led  
  }
  else
  {
    digitalWrite(led, LOW);  
  }
  delay(100);
}
